package com.wuyb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuyb.pojo.Menu;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: wyb
 * @Date: 2024/01/01/15:32
 * @Description:
 */
@Component
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 通过用户ID查询菜单列表
     * @param id
     * @return
     */
    List<Menu> getMenusByUserId(Integer id);
}
